﻿using NinjaToolbox.SubComponentModule.Internal;

namespace NinjaToolbox.SubComponentModule
{
    public sealed class SubComponentModelEditorData : IUnionSerializable
    {
        public static readonly string KEY = "SubComponentModelEditorData";

        public bool IsUnfold { get; set; }


        void IUnionSerializable.Deserialize(UnionSerializeReader serializeReader)
        {
            IsUnfold = serializeReader.ReadBool();
        }

        void IUnionSerializable.Serialize(UnionSerializeWriter serializeWriter)
        {
            serializeWriter.Write(IsUnfold);
        }
    }
}
